package com.example.mapper;

import com.example.entity.Best;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface BestMapper {
    int deleteByPrimaryKey(Integer bestid);

    int insert(Best record);

    int insertSelective(Best record);

    Best selectByPrimaryKey(Integer bestid);

    int updateByPrimaryKeySelective(Best record);

    int updateByPrimaryKey(Best record);

    int getBestCountWithRId(Integer rid);

    Best checkWeatherIsSelected(Integer userid, Integer rid);

    void deleteByUserAndRecommend(Integer userid, Integer rid);
}